<?php

namespace app\mini\controller\v1\client\validate;


use think\Validate;

class ServiceShopValidate extends Validate
{
    protected $rule = [
        'id'      => 'require',
        'service_type'      => 'require',
        'name'      => 'require|max:50',
        'detail'      => 'require',
        'cover_img'      => 'require',
        'main_business'      => 'require',
        'districts'      => 'require',
        'address'      => 'require',
        'longitude'      => 'require',
        'latitude'      => 'require',

    ];

    protected $message = [
        'type.require'      => 'type必填',
        'city.require'      => '城市id必填',

    ];

    protected $scene = [
        'index'  => ['service_type','city','latitude','longitude'],
        'edit'  => ['service_type','name','main_business','address','longitude','latitude','detail','cover_img'],
        'main_business'  => ['service_type'],
        'detail'  => ['id'],
        'info'  => ['id'],
    ];
}